import { hRequest } from './index'

/** 部门列表 */
export const getDeptListApi = (params: any) =>
hRequest.get({
    url: "/dept/list",
    params,
  });

/** 部门新增 */
export const deptAddApi = (data: any) =>
hRequest.post({
    url: "/dept/add",
    data,
  });

/** 编辑部门 */
export const deptUpdateApi = (data: any) =>
hRequest.post({
    url: "/dept/update",
    data,
  });

/** 删除部门 */
export const deptDeleteApi = (params: any) =>
hRequest.get({
    url: "/dept/delete",
    params,
  });